package org.xtb.fun4;

public class Output extends Filter {
    private String output1;
    public Output( Pipe input) {
        super(input, null);
    }

    @Override
    protected void transform() {
        StringBuilder result = new StringBuilder();
        while (input.hashNextLine()){
            result.append(input.readerLine()).append("\n");
        }
        output1=result.toString();
    }

    public String getOutput1() {
        return output1;
    }
}

